package com.david.gulimall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
 * 如何调用远程服务
 * 1.引入open-feign
 * 2.编写接口告诉spring cloud这个接口需要进行远程调用服务
 * 3.开启远程调用功能
 */
@EnableFeignClients(basePackages = "com.david.gulimall.member.openFeign")
@EnableDiscoveryClient
@SpringBootApplication
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
